			<div class="main">
				<?php 
					if (isLogin)
					{
				?>
						<p>You have logged in, can not log in again.</p>
				<?php
					}
					else if (isset($_POST['userName'])) 
					{
						userClass::doLogin($_POST);
					}
					else 
					{
				?>
						<form action="#" method="post">
							Username: <input type="text" name="userName" /><br />
							Password: <input type="password" name="userPwd" /><br />
							<input type="submit" value="Submit"> <input type="reset" value="Reset">
						</form>
				<?php
					}
				?>
			</div>